/* 基础样式 */
:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --primary-color: #409eff;
  --text-color: #333;
  --text-color-light: #666;
  --background-color: #f5f5f5;
  --background-color-light: #ffffff;
  --button-bg: #409eff;
  --button-text: #ffffff;
  --border-color: #dcdfe6;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
}

/* 通用样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: darken(var(--primary-color), 10%);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--button-text);
  background-color: var(--button-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
button:hover {
  background-color: darken(var(--button-bg), 5%);
  border-color: darken(var(--border-color), 10%);
}
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.3);
}

input, textarea, select {
  font-family: var(--font-family);
  font-size: 14px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* 页面特定样式 */
.auth-page {
  display: flex;
  place-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

.auth-page #app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-page {
  height: 100vh;
  width: 100vw;
}

.dashboard-page #app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .auth-page #app {
    padding: 1rem;
  }
}

/* 浅色主题 */
@media (prefers-color-scheme: light) {
  :root {
    --text-color: #333;
    --background-color: #ffffff;
  }
}